package com.itheima.dao;

import com.itheima.common.constant.MessageConstant;
import com.itheima.common.entity.Result;
import com.itheima.pojo.Setmeal;
import com.itheima.service.SetmealService;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@Mapper
public interface SetmealMapper {
	@Select("select * from t_setmeal")
	List<Setmeal> getSetmeal();

	@Select("select * from t_setmeal where id=#{id}")
	Setmeal findById(Integer id);
}
